﻿namespace MicroBlog.Models
{
    /// <summary>
    /// 角色与权限的关系
    /// </summary>
    public class RolePermission
    {
        /// <summary>
        /// 角色ID
        /// </summary>
        public int RoleId { get; set; }
        /// <summary>
        /// 权限ID
        /// </summary>
        public int PermissionId { get; set; }

        /// <summary>
        /// 角色
        /// </summary>
        public virtual Role Role { get; set; }
        /// <summary>
        /// 权限
        /// </summary>
        public virtual Permission Permission { get; set; }
    }
}